package com.xuecheng.manage_cms.service;

import com.xuecheng.framework.domain.cms.CmsConfig;
import com.xuecheng.framework.domain.cms.CmsPage;
import com.xuecheng.framework.domain.cms.request.QueryPageRequest;
import com.xuecheng.framework.domain.cms.response.CmsPageResult;
import com.xuecheng.framework.domain.cms.response.CmsPostPageResult;
import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.framework.model.response.ResponseResult;

/**
 * @Author: 冯志立
 * @Date: 2019/10/30 22:37
 */
public interface CmsPageService {
    QueryResponseResult findList(int page, int size, QueryPageRequest queryPageRequest);

    CmsPageResult add(CmsPage cmsPage);

    CmsPageResult update(String id, CmsPage cmsPage);

    CmsPage getById(String id);

    ResponseResult delete(String id);

    CmsConfig getConfigById(String id);

    //页面静态化方法
    String getPageHtml(String pageId);

    ResponseResult post(String pageId);

    CmsPageResult save(CmsPage cmsPage);
    //一键发布页面
    CmsPostPageResult postPageQuick(CmsPage cmsPage);
}
